package com.jctrip.hotel.management.model.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "获取订单列表列表接口-请求体")
@Data
public class GetOrderListParam {

    @ApiModelProperty(value = "管理后台使用的账户",required = true)
    private String username;

    @ApiModelProperty(value = "供应商账户id",required = false)
    private String sourceId;

    @ApiModelProperty(value = "渠道账户id",required = false)
    private String routeId;

    @ApiModelProperty(value = "渠道订单状态(0-未支付；10-已支付；20-已确认；21-拒绝新订；30-已完成；40-申请取消；41-同意取消；42-拒绝取消；50-已退款)",required = false)
    private Integer routeOrderStatus;

    @ApiModelProperty(value = "订单时间(1:预定时间,2:入住时间,3:离店时间)",required = false)
    private Integer orderCreateTime;

    @ApiModelProperty(value = "入住时间",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date arriveDate;

    @ApiModelProperty(value = "离店时间",required = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date departDate;

    @ApiModelProperty(value = "大搜索框内容", required = false)
    private String text;

    @ApiModelProperty(value = "渠道订单号",required = false)
    private String routeOrderId;

    @ApiModelProperty(value = "供应订单号",required = false)
    private String sourceOrderId;

    @ApiModelProperty(value = "当前页码(默认第1页)", required = false)
    private Integer pageNo = 1;

    @ApiModelProperty(value = "页面条数(默认10条)", required = false)
    private Integer pageSize = 10;

    @ApiModelProperty(value = "是否获取实时数据(点击查询按钮时传true，翻页、页面条数变化传false)" ,required = true)
    private Boolean flag;
}
